import type { App } from 'vue';
import DictSelectTagAntd from './components/selectTagAntd.vue';
import DictSelectTagVue from './components/selectTagVue.vue';
import { DictManager } from './store/dictStore';

// 导出字典管理器
export { DictManager };

// 导出类型
export * from './types';
export type { DictTransformConfig } from './store/dictStore';

// 定义安装函数
const install = (app: App) => {
  app.component('DictSelectTagAntd', DictSelectTagAntd);
  app.component('DictSelectTagVue', DictSelectTagVue);
};

// 默认导出（支持全局注册）
export default {
  install,
  DictManager,
};
